﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace QMERP.Infrastructure.EFCore.Migrations
{
    /// <inheritdoc />
    public partial class init25 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "FinishOn",
                table: "TransferOrder",
                newName: "FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishByName",
                table: "TransferOrder",
                newName: "FinishedByName");

            migrationBuilder.RenameColumn(
                name: "FinishBy",
                table: "TransferOrder",
                newName: "FinishedBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_TransferOrder_FinishOn",
            //    table: "TransferOrder",
            //    newName: "IX_TransferOrder_FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishOn",
                table: "TransferLensOrder",
                newName: "FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishByName",
                table: "TransferLensOrder",
                newName: "FinishedByName");

            migrationBuilder.RenameColumn(
                name: "FinishBy",
                table: "TransferLensOrder",
                newName: "FinishedBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_TransferLensOrder_FinishOn",
            //    table: "TransferLensOrder",
            //    newName: "IX_TransferLensOrder_FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishOn",
                table: "RetailOrder",
                newName: "FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishByName",
                table: "RetailOrder",
                newName: "FinishedByName");

            migrationBuilder.RenameColumn(
                name: "FinishBy",
                table: "RetailOrder",
                newName: "FinishedBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_RetailOrder_FinishOn",
            //    table: "RetailOrder",
            //    newName: "IX_RetailOrder_FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishOn",
                table: "PurchaseOrder",
                newName: "FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishByName",
                table: "PurchaseOrder",
                newName: "FinishedByName");

            migrationBuilder.RenameColumn(
                name: "FinishBy",
                table: "PurchaseOrder",
                newName: "FinishedBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_PurchaseOrder_FinishOn",
            //    table: "PurchaseOrder",
            //    newName: "IX_PurchaseOrder_FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishOn",
                table: "InventoryOrder",
                newName: "FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishByName",
                table: "InventoryOrder",
                newName: "FinishedByName");

            migrationBuilder.RenameColumn(
                name: "FinishBy",
                table: "InventoryOrder",
                newName: "FinishedBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_InventoryOrder_FinishOn",
            //    table: "InventoryOrder",
            //    newName: "IX_InventoryOrder_FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishOn",
                table: "BulkOrder",
                newName: "FinishedOn");

            migrationBuilder.RenameColumn(
                name: "FinishByName",
                table: "BulkOrder",
                newName: "FinishedByName");

            migrationBuilder.RenameColumn(
                name: "FinishBy",
                table: "BulkOrder",
                newName: "FinishedBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_BulkOrder_FinishOn",
            //    table: "BulkOrder",
            //    newName: "IX_BulkOrder_FinishedOn");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "FinishedOn",
                table: "TransferOrder",
                newName: "FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedByName",
                table: "TransferOrder",
                newName: "FinishByName");

            migrationBuilder.RenameColumn(
                name: "FinishedBy",
                table: "TransferOrder",
                newName: "FinishBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_TransferOrder_FinishedOn",
            //    table: "TransferOrder",
            //    newName: "IX_TransferOrder_FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedOn",
                table: "TransferLensOrder",
                newName: "FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedByName",
                table: "TransferLensOrder",
                newName: "FinishByName");

            migrationBuilder.RenameColumn(
                name: "FinishedBy",
                table: "TransferLensOrder",
                newName: "FinishBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_TransferLensOrder_FinishedOn",
            //    table: "TransferLensOrder",
            //    newName: "IX_TransferLensOrder_FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedOn",
                table: "RetailOrder",
                newName: "FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedByName",
                table: "RetailOrder",
                newName: "FinishByName");

            migrationBuilder.RenameColumn(
                name: "FinishedBy",
                table: "RetailOrder",
                newName: "FinishBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_RetailOrder_FinishedOn",
            //    table: "RetailOrder",
            //    newName: "IX_RetailOrder_FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedOn",
                table: "PurchaseOrder",
                newName: "FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedByName",
                table: "PurchaseOrder",
                newName: "FinishByName");

            migrationBuilder.RenameColumn(
                name: "FinishedBy",
                table: "PurchaseOrder",
                newName: "FinishBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_PurchaseOrder_FinishedOn",
            //    table: "PurchaseOrder",
            //    newName: "IX_PurchaseOrder_FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedOn",
                table: "InventoryOrder",
                newName: "FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedByName",
                table: "InventoryOrder",
                newName: "FinishByName");

            migrationBuilder.RenameColumn(
                name: "FinishedBy",
                table: "InventoryOrder",
                newName: "FinishBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_InventoryOrder_FinishedOn",
            //    table: "InventoryOrder",
            //    newName: "IX_InventoryOrder_FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedOn",
                table: "BulkOrder",
                newName: "FinishOn");

            migrationBuilder.RenameColumn(
                name: "FinishedByName",
                table: "BulkOrder",
                newName: "FinishByName");

            migrationBuilder.RenameColumn(
                name: "FinishedBy",
                table: "BulkOrder",
                newName: "FinishBy");

            //migrationBuilder.RenameIndex(
            //    name: "IX_BulkOrder_FinishedOn",
            //    table: "BulkOrder",
            //    newName: "IX_BulkOrder_FinishOn");
        }
    }
}
